package com.myjavalab.objectpool;

public class ObjectPoolFactory {

	private static ObjectPoolFactory poolFactory;

	public static ObjectPoolFactory getInstance() {
		if (poolFactory == null) {
			poolFactory = new ObjectPoolFactory();
		}
		return poolFactory;
	}
	
	public ObjectPool createPool(int maxCount, int minCount, Class clsType) {
		return new ObjectPool(maxCount, minCount, clsType);
	}
}
